
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"  %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>去结算</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <!-- <link rel="shortcut icon" href="/favicon.ico"> -->
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="<%=basePath %>/resources/Public/Vendor/SUI/dist/css/sm.min.css">

    <link rel="stylesheet" href="<%=basePath %>/resources/Public/Vendor/SUI/dist/css/sm.min.css">
    <link rel="stylesheet" href="<%=basePath %>/resources/Public/Vendor/SUI/dist/css/sm-extend.min.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath %>/resources/Public/Vendor/icon/iconfont.css">

    <link rel="stylesheet" href="<%=basePath %>/resources/Public/css/common.css">
</head>
<body>
<div class="page-group">
    <div class="page xgj-order-select" id='xgj-order-select' >
        <div class="content " >
            <div class="list-block">
                <ul style="margin-bottom: 2.8rem">
                    <c:forEach items="${business}" var="bus"  >
                        <li>
                            <label class="label-checkbox item-content">
                                <div class="item-media">
                                    <img src="http://web.lbxgj.com/upload/bus/${bus.logo}" style='width: 4rem;'>
                                </div>
                                <div class="item-inner">
                                    <div class="item-title-row">
                                        <div class="item-title">${bus.bName}</div>
                                        <div class="item-after" ">${bus.bDesc}</div>
                                        <div class="item-after" style="color:#FF4C01;font-size: .8rem; ">￥${bus.price}</div>
                                        <div class="item-after" style="">
                                            <span class="icon iconfont icon-wodexiangqingfangzi" style="color:#B7B7B7;margin-right: 0.2rem;"></span>
                                            <span style="margin-top: 0.1rem;">小工匠</span>
                                        </div>

                                    </div>

                                    <div class="item-after">
                                        <input type="radio" name="my-radio" value="${bus.id}">
                                        <div class="item-media"><i class="icon icon-form-checkbox"></i></div>
                                    </div>

                            </label>

                        </li>
                    </c:forEach>
                </ul>

            </div>

        </div>
    <nav class="bar bar-tab xgj-bar-btn" >
        <input type="hidden" id="bid" value="">
        <a href="javascrpit:void(0)" onclick="cost()" class="">去结算</a>
    </nav>
    </div>

</div>
<!--   此处引入 tabar.php -->

<script src='<%=basePath %>/resources/Public/Vendor/SUI/dist/js/zepto.js'></script>
<script type="text/javascript">
    $.config = {
        // 路由功能开关过滤器，返回 false 表示当前点击链接不使用路由
        routerFilter: function($link) {
            // 某个区域的 a 链接不想使用路由功能
            if ($link.is('.disable-router a')) {
                return false;
            }
            return true;
        }
    };

    $(function(){
        $("li").on("click",function(){
            thisVal = $(this).find("input").val();
            $("#bid").val(thisVal);
        })
    })
    function cost(){
        if($("#bid").val()==""){
            $.toast("请选择单项工程");
        }else{
            window.location.href="https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx71b22bc16489b2ee&redirect_uri=http%3a%2f%2fwx.lbxgj.com%2fwx%2fbusiness%2ftoOrderPage.do?bid="+$("#bid").val()
                +"&response_type=code&scope=snsapi_base&state=123#wechat_redirectt";
        }
    }

</script>
<script src='<%=basePath %>/resources/Public/Vendor/SUI/dist/js/sm.js'></script>
<script src="<%=basePath %>/resources/Public/Vendor/SUI/dist/js/sm-city-picker.min.js" ></script>
<script src='<%=basePath %>/resources/Public/Vendor/SUI/dist/js/sm-extend.min.js'></script>
<script src='<%=basePath %>/resources/Public/js/common.js'></script>



<!-- / 此处引入 tabar.php -->
<script type="text/javascript">

</script>

</body>
</html>





